package com.example.membersteward.mapper;

import com.example.membersteward.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.membersteward.entity.vo.UserVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
* @author 26690
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2025-04-08 22:52:37
* @Entity com.example.membersteward.entity.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectByName(String username);

    User selectByUserId(Long userId);

    int resetPassword(User user);

    int updateUser(User user);

    List<User> getExportUserInfo(UserVo userVo);

    List<UserVo> selectByPage(User user, Date startDate, Date endDate, int offset, int pageSize);

    Integer getTotalCount(User user, Date startDate, Date endDate);

    User selectByInfo(UserVo user);
}




